package com.huatai.dataservice.panel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车辆gps数据
 * </p>
 *
 * @author lxc
 * @since 2022-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_rt_gnrmc_gps_dd")
@ApiModel(value="TbRtGnrmcGpsDd对象", description="车辆gps数据")
public class TbRtGnrmcGpsDd implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@ApiModelProperty(value = " 时间")
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss SSS",
		timezone = "GMT+8"
	)
	private Date time;

	@ApiModelProperty(value = "日期")
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss SSS",
		timezone = "GMT+8"
	)
	private Date date;

	@ApiModelProperty(value = "设备时间")
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss",
		timezone = "GTM+8"
	)
	@TableField(value = "reportTime")
	private Date reportTime;

	@ApiModelProperty(value = "09发送时间")
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss",
		timezone = "GTM+8"
	)
	@TableField(value = "sendTime")
	private Date sendTime;

	@ApiModelProperty(value = "试验id（trialId）")
	@TableField(value = "trialId")
	private String trialId;

	@ApiModelProperty(value = "目标批号")
	@TableField(value = "targetNumber")
	private String targetNumber;

	@ApiModelProperty(value = "定位状态 A=有效 V=无效")
	@TableField(value = "status")
	private String status;

	@ApiModelProperty(value = "纬度")
	@TableField(value = "latitude")
	private String latitude;

	@ApiModelProperty(value = "经度")
	@TableField(value = "longitude")
	private String longitude;

	@ApiModelProperty(value = "速度（节）")
	@TableField(value = "velocityKn")
	private String velocityKn;

	@ApiModelProperty(value = "航向角（度）")
	@TableField(value = "course")
	private String course;

	@ApiModelProperty(value = "磁偏角(度） 0-180")
	@TableField(value = "declination")
	private String declination;

	@ApiModelProperty(value = "深度")
	@TableField(value = "height")
	private String height;

	@ApiModelProperty(value = "磁偏角方向 （E/W: 东/西）")
	@TableField(value = "declinationDirection")
	private String declinationDirection;

	@ApiModelProperty(value = "模式 A=自动，D=差分，E=估测，N=数据无效")
	@TableField(value = "mode")
	private String mode;

}
